<?php
$appRoot = dirname(__FILE__);

set_include_path(get_include_path() . PATH_SEPARATOR . $appRoot);
set_include_path(get_include_path() . PATH_SEPARATOR . $appRoot . '/lib');

define('MORIARTY_ARC_DIR', $appRoot . '/lib/arc'.DIRECTORY_SEPARATOR);
define('MORIARTY_DIR', $appRoot . '/lib/moriarty'.DIRECTORY_SEPARATOR);
define('OPTIMISER_DIR', $appRoot . '/lib/optimiser'.DIRECTORY_SEPARATOR);

require_once OPTIMISER_DIR . "prettyprintquery.class.php";
require_once OPTIMISER_DIR . "schemastats.class.php";
require_once OPTIMISER_DIR . "optimiser.class.php";

require_once MORIARTY_ARC_DIR . 'ARC2.php';
require_once MORIARTY_DIR .'moriarty.inc.php';
require_once MORIARTY_DIR . 'store.class.php';
require_once MORIARTY_DIR . 'credentials.class.php';
require_once MORIARTY_DIR . 'simplegraph.class.php';

?>